package com.ruoyi.common.exception;

/**
 * 全局异常
 *
 * @author ruoyi
 */
public class NotFountDeleteFiledException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    /**
     * 错误提示
     */
    private String message;


    /**
     * 空构造方法，避免反序列化问题
     */
    public NotFountDeleteFiledException() {
    }

    public NotFountDeleteFiledException(String message) {
        this.message = message;
    }

    public static NotFountDeleteFiledException getInstance(String message) {
        return new NotFountDeleteFiledException(message);
    }

    @Override
    public String getMessage() {
        return message;
    }

    public NotFountDeleteFiledException setMessage(String message) {
        this.message = message;
        return this;
    }
}
